package com.fkdx.dao.mapper;

import com.fkdx.dao.condition.UserRoleCondition;
import com.fkdx.dao.entity.UserRole;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository()
public interface UserRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserRole record);

    UserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKey(UserRole record);
    
    int updateSelective(UserRole record);

    List<UserRole> selectAll(UserRoleCondition condition);

    int updateByIds(@Param("ids") List<Long> ids);

    int deleteByUserIds(@Param("userIds") List<Long> userIds);

    UserRole selectByUser(@Param("userId") Long userId);
}
